<?php
 
// No direct access
 
defined('_JEXEC') or die('Restricted access'); ?>
<h1><?php echo $this->rsc->qa_title; ?></h1>
<br/>
<br/>
<i><?php echo $this->rsc->qa_edit_text; ?></i>
<br/>
<br/>
<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
<form action="index.php?option=com_hizkuntzak" class="formular" method="post" id="qaForm" name="qaForm">
	<input type="hidden" name="task" value="addQa"/>
	<input type="hidden" name="id" value="<?php echo $this->qa->id; ?>"/>
	<table>
		<tr>
			<td><?php echo $this->rsc->qa_q_eu; ?>: </td>
			<td><textarea class='validate[required]' id="q_eu" name="q_eu"><?php echo($this->qa->q_eu);?></textarea></td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->qa_q_es; ?>: </td>
			<td><textarea class='validate[required]' id="q_es" name="q_es"><?php echo($this->qa->q_es);?></textarea></td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->qa_a_eu; ?>: </td>
			<td><textarea class='validate[required]' id="a_eu" name="a_eu"><?php echo($this->qa->a_eu);?></textarea></td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->qa_a_es; ?>: </td>
			<td><textarea class='validate[required]' id="a_es" name="a_es"><?php echo($this->qa->a_es);?></textarea></td>
		</tr>
		<tr>
			<td><?php echo $this->rsc->active; ?>: </td>
			<td>
				<?php 
					if($this->qa->active){
						print("<input type='checkbox' checked='checked' name='active'/>");
					}
					else{
						print("<input type='checkbox' name='active'/>");
					}
				?>
				
			</td>
		</tr>
	</table>
	<br/>
	<input type="button" id="submitQaFormButton" value="<?php echo $this->rsc->save_changes; ?>" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
	<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
</form>

